--- include/isapnp/iopl.h.orig	2001-05-15 17:37:05.000000000 -0300
+++ include/isapnp/iopl.h	2017-09-10 18:20:24.488248788 -0300
@@ -58,7 +58,7 @@
 #    ifdef _AXP_
 #       include <sys/io.h>
 #    else
-#       include <asm/io.h>
+#       include <sys/io.h>
 #    endif
 #  endif	      	   /* __GLIBC__ */
 #else
--- src/callbacks.c.orig	2001-05-15 17:37:04.000000000 -0300
+++ src/callbacks.c	2017-09-10 18:24:14.415258184 -0300
@@ -49,6 +49,7 @@
 #include <isapnp/callbacks.h>
 #endif
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 #include <string.h>
 
--- src/pnp-select.c.orig	2001-05-15 17:37:04.000000000 -0300
+++ src/pnp-select.c	2017-09-10 18:33:01.433279723 -0300
@@ -12,8 +12,7 @@
 
 static char Id[] __attribute__((unused)) = "$Id: pnp-select.c,v 0.7 2001/04/30 21:52:40 fox Exp $";
 
-#include <malloc.h>
-/* malloc.h is needed only for declaring NULL */
+#define NULL 0
 
 #include <isapnp/resource.h>
 #include <isapnp/pnp.h>
